#include "widget.h"
#include "./ui_widget.h"
#include "server.h"

Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget) { ui->setupUi(this); }

Widget::~Widget() { delete ui; }

void Widget::on_pushButton_clicked()
{
    WebsocketServer *websocketServer = WebsocketServer::getInstance();
    emit websocketServer->sendTextResp();
}

void Widget::on_pushButton_2_clicked()
{
    WebsocketServer *websocketServer = WebsocketServer::getInstance();
    emit websocketServer->sendFriendRemove();
}

void Widget::on_pushButton_3_clicked()
{
    WebsocketServer *websocketServer = WebsocketServer::getInstance();
    emit websocketServer->sendAddFriendApply();
}
